﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ESPlus.Application.Basic.Passive;

namespace ESFDemo
{
    public partial class LoginForm : Form
    {
        private string userID;
        public string UserID
        {
            get { return userID; }            
        }
       

        public LoginForm()
        {
            InitializeComponent();            
        }

        private void button_login_Click(object sender, EventArgs e)
        {
            string ID = this.textBox_id.Text.Trim();
            if (ID.Length > 10)
            {
                MessageBox.Show("ID长度必须小于10.");
                return;
            }
           
            this.userID = ID;
            this.DialogResult = DialogResult.OK;
           
        }
        
       
    }
}
